<?php
class Administrator_ProductCat_Model extends BaseModel{

	public function getProductCatForCombo($productCatid = null){
		$where = "";
		if(isset($productCatid))
			$where = " where c.id != '".$productCatid."'";
		$sql = 'SELECT c.id as ' . Constant::COMBOBOX_VALUE .', c.name as ' . Constant::COMBOBOX_TEXT .' FROM productcat as c' . $where;
		return DBHelper::getInstance()->fetchAll($sql);
	}
}